@charset "UTF-8";
/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.top-bar-second {
    min-width: 920px;
    height: 64px;
    width: 100%;
    background-color: white;
    box-shadow: 0 -17px 20px 1px black;
    top: 0;
    z-index: 500;
    transition: top 0.3s ease-in-out;
    position: sticky;
}
.article-detail-container {
    margin: 38px auto 0;
    padding: 0 48px;
    width: 1130px;
    min-width: 1130px;
    position: relative;
    display: flex;
}

.article-detail-container .left-sidebar {
    margin-left: -108px;
    width: 89px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 13px;
    position: fixed;
    z-index: 100;
}

.article-detail-container .left-sidebar .icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
}

.article-detail-container .left-sidebar .icon .iconfont {
    font-size: 30px;
    color: grey;
    cursor: pointer;
}
.article-detail-container .left-sidebar .icon .shareLists {
    transition: all 0.3s ease;
    transform: scale(0);
    /*transform-origin: center;*/
    opacity: 0;
    position: absolute;
    left: 340px;
    top:73px;
    width: 350px;
    background-color: white;
    height: 440px;
    border-radius: 28px;
    box-shadow: 0 10px 50px rgba(54, 56, 79, 0.11);
    /*z-index: 100;*/
}

.article-detail-container .left-sidebar .icon .shareLists .follow-fans {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 27px 28px 0 0;
    height: 10%;
    border-bottom: 1px solid black;
}

.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-follow,
.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-fans {
    width: 50%;
    height: 100%;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-follow:hover,
.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-fans:hover {
    background-color: #f44336;
}

.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-follow {
    border-radius: 23px 0 0 0;
    border-right: 1px solid black;
}

.article-detail-container .left-sidebar .icon .shareLists .follow-fans .share-fans {
    border-radius: 0 23px 0 0;
}

.article-detail-container .left-sidebar .icon .shareLists .userList {
    overflow-y: auto;
    height: 80%;
    scrollbar-width: none;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems {
    width: 100%;
    height: 15%;
    padding: 1px 31px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid black;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems:hover {
    background-color: #F8F8F8;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems .share-user-avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems .share-user-userName {
    font-size: 16px;
    margin-left: 5px;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems input[type="checkbox"] {
    border-radius: 50%;
    margin-left: 5px;
    -webkit-appearance: none;
    /* 去除默认样式 */
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    outline: none;
    cursor: pointer;
    position: relative;
}

.article-detail-container .left-sidebar .icon .shareLists .userList .userItems input[type="checkbox"]:checked {
    border: 1px solid #ccc;
}
.follow-fans > div.active {
    background-color: #f44336;
    color: white;
}
.article-detail-container .left-sidebar .icon .shareLists .userList .userItems input[type="checkbox"]:checked::after {
    content: "✓";
    /* 对钩符号 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 使对钩居中 */
    color: red;
    /* 对钩颜色 */
    font-size: 13px;
    /* 对钩字体大小 */
}

.article-detail-container .left-sidebar .icon .shareLists .share-confirm {
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    background-color: #ed8a8a;
}

.article-detail-container .left-sidebar .icon .shareLists .share-confirm:hover {
    background-color: #f44336;
}
.article-detail-container * textarea {
    resize: none;
    width: 100%;
    height: auto;
    min-height: 50px;
    max-height: 105px;
    overflow-y: scroll;
    outline: none;
    border: none;
    border-radius: 5px;
    resize: none;
    padding: 10px;
    margin-bottom: 5px;
    font-size: 17px;
    background-color: #f8F8F8;
}

.article-detail-container .main-content {
    margin-left: 72px;
    width: 676px;
}

.article-detail-container .main-content .article {
    margin-bottom: 20px;
}

.article-detail-container .main-content .article .article-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.article-detail-container .main-content .article .article-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.article-detail-container .main-content .article .article-info .article-date {
    margin-right: 10px;
    color: #666;
}

.article-detail-container .main-content .article .article-actions {
    display: flex;
    margin-bottom: 10px;
}

.article-detail-container .main-content .article .article-actions .like-icon,
.article-detail-container .main-content .article .article-actions .comment-icon,
.article-detail-container .main-content .article .article-actions .favorite-icon,
.article-detail-container .main-content .article .article-actions .share-icon {
    margin-right: 10px;
    cursor: pointer;
}

.article-detail-container .main-content .article .content {
    line-height: 1.6;
    margin-bottom: 10px;
    max-width:100%;
    word-break: break-word; /* 允许在单词内换行 */
    overflow-wrap: break-word; /* 当内容超出容器宽度时，单词内换行 */
}
.article-detail-container .main-content .Comments-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin-bottom: 10px;
    padding: 30px 0;
    /*评论区的标题*/
    /*点击查看全部评论*/
}

.article-detail-container .main-content .Comments-bottom .Comments-bottom-title {
    font-size: 25px;
    margin-bottom: 20px;
    margin-left: 15px;
}

.article-detail-container .main-content .Comments-bottom .View-other-comments {
    width: 100%;
    background-color: #EBEBEB;
    border-radius: 5px;
    text-align: center;
    height: 35px;
    line-height: 35px;
    cursor: pointer;
    margin: 16px 20px;
}
.article-detail-container .main-content .Comments-bottom .no-comments{
    width:100%;
    text-align: center;
    color:grey;
    margin-top:20px;
}
.right-sidebar {
    width: 357px;
    padding: 20px;
    position: absolute;
    right: -2px;
    top: 0;
}

.right-sidebar .author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-sidebar .author-profile .author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #ccc;
    margin-bottom: 10px;
}

.right-sidebar .author-profile .author-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: #707070;
}

.right-sidebar .author-profile .author-desc {
    font-size: 14px;
    color: #666;
}

.right-sidebar .author-profile .follow-button {
    width: 70px;
    height: 30px;
    font-size: 18px;
    line-height: 31px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.right-sidebar .popular-works .works-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.cloned-input {
    width: 80% !important;
}
.more-comment-button {
    border: none;
    padding: 11px 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    width: 100%;
    color: rgb(34 34 34);
    background: #f8f8f8;
    cursor: pointer;
    margin: 11px 4px;
}
.more-comment-button:hover {
    background-color: #eaeaea;
}
.noMoreComments{
    font-size:15px;
    color:grey;
    text-align: center;
    margin-top: 15px;
}
/*两个评论区的输入框(单独放外面写)*/
.Comments-bottom-myInput {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    padding: 10px;
}

.Comments-bottom-myInput .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.pleaseLoginAndComment{
    cursor: pointer;
}

.Comments-bottom-myInput .logged{
    background-color: #F8F8F8;
    width: 100%;
    height: 107px;
    position: relative;
    border-radius: 5px;

}
.Comments-bottom-myInput .no-login{
    background-color: #F8F8F8;
    width: 100%;
    height: 107px;
    position: relative;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.Comments-bottom-myInput .Comments-bottom-input .Comments-bottom-action {
    display: flex;
    justify-content: space-between;
    padding: 0 13px 9px 10px;
}

.Comments-bottom-myInput .Comments-bottom-input .Comments-bottom-action .Comments-bottom-emoji-button {
    cursor: pointer;
    margin-right: 5px;
    font-size: 25px;
}

.Comments-bottom-myInput .Comments-bottom-input .Comments-bottom-action .Comments-bottom-submit {
    padding: 8px 15px;
    background-color: #C5C5C5;
    color: white;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.Comments-bottom-myInput .Comments-bottom-input .Comments-bottom-action .Comments-bottom-submit:hover {
    background-color: #CFCFCF;
}

/*评论列表*/
.comment-list {
    max-height: 100%;
    width:100%;

}
.right-no-comments{
    width: 100%;
    text-align: center;
    margin-top: 30px;
    color: grey;
}
.comment-list .comment-item {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    max-width:100%;
    word-break: break-word; /* 允许在单词内换行 */
    overflow-wrap: break-word; /* 当内容超出容器宽度时，单词内换行 */
}

.comment-list .comment-item .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    position: absolute;
}

.comment-list .comment-item .comment-header {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.comment-list .comment-item .comment-header .user-name {
    font-size: 16px;
}

.comment-list .comment-item .comment-header .like-count {
    margin-right: 5px;
    cursor: pointer;
}

.comment-list .comment-item .comment-header .like-icon {
    width: 20px;
    height: 20px;
    /*background-image: url("like-icon.png");*/
    background-size: cover;
    cursor: pointer;
}

.comment-list .comment-item .comment-header .icon-dianzan {
    font-size: 23px;
    color: grey;
    margin-left: auto;
    margin-right: 5px;
}

.comment-list .comment-item .comment-body {
    margin-left: 40px;
}

.comment-list .comment-item .comment-body p {
    margin-bottom: 5px;
}

.comment-list .comment-item .comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin: 5px 0 5px 40px;
}
.comment-list .comment-item .comment-footer .comment-time{
    margin-left:5px;
}
.comment-list .comment-item .comment-footer .reply-button {
    color: #666;
    cursor: pointer;
}
.comment-list .comment-item .comment-footer .icon-quxiao{
    cursor: pointer;

}

/* 灰色遮罩层 */
body.active::after {
    content: "";
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.Comment-window {
    position: fixed;
    top: 0;
    right: -448px;
    /* 初始位置在屏幕外右侧 */
    width: 448px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.2s ease-in-out;
    /* 过渡效果 */
    z-index: 1000;
    overflow-y: auto;
}

.Comment-window.active {
    right: 0;
    /* 激活时滑入屏幕 */
}

.Comment-window .comment-section {
    padding: 10px;
}

.Comment-window .comment-section .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.Comment-window .comment-section .comment-header h2 {
    font-size: 20px;
}

.Comment-window .comment-section .comment-header .close-button {
    text-decoration: none;
    color: #333;
    font-size: 20px;
}

.alert{
    display: none;
    width: 230px;
    height: 70px;
    color: red;
    text-align: center;
    position: fixed;
    border-radius: 6px;
    top: 20%;
    left: 50%;
    z-index: 101;
    background-color: white;
    opacity: 1.5;
    line-height: 70px;
    box-shadow: 0 0 9px 1px #E5E0E0;
    transform: translate(-50%);
    font-size: 20px;
}

/* 灰色遮罩层 */
body.active::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@keyframes showMask {
    from {
        background-color: transparent;
    }
    to {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@keyframes fadeMask {
    from {
        background-color: rgba(0, 0, 0, 0.5);
    }
    to {
        background-color: transparent;
    }
}

@keyframes showPopup {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadePopup {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}
.confirm-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    animation: showMask 0.3s ease;
}

.confirm-popup.active {
    background-color: rgba(0, 0, 0, 0.5);
    display: block;
}

.confirm-popup.active .popup-content {
    opacity: 1;
}

.confirm-popup.closing {
    animation: fadeMask 0.3s ease;
}

.confirm-popup.closing .popup-content {
    animation: fadePopup 0.3s ease;
}

.confirm-popup .popup-content {
    width: 350px;
    height: 170px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: 10px;
    animation: showPopup 0.3s ease;
}

.confirm-popup .popup-content .container {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 5px 10px 10px 15px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: relative;
}

.confirm-popup .popup-content .container .close .delete-close-button {
    float: right;
    font-size: 25px;
    cursor: pointer;
}

.confirm-popup .popup-content .container .confirm-text {
    font-size: 20px;
    margin-bottom: 15px;
}

.confirm-popup .popup-content .container .confirm-alert {
    margin-bottom: 20px;
}

.confirm-popup .popup-content .container .confirm-footer {
    text-align: end;
    margin-right: 15px;
}

.confirm-popup .popup-content .container .confirm-footer button {
    width: 60px;
    height: 30px;
    border: none;
    font-size: 17px;
    border-radius: 5px;
    line-height: 30px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.confirm-popup .popup-content .container .confirm-footer .cancel-button {
    border: 0.5px solid grey;
}

.confirm-popup .popup-content .container .confirm-footer .cancel-button:hover {
    border: 0.5px solid black;
}

.confirm-popup .popup-content .container .confirm-footer .confirm-button {
    background-color: #FF5E5E;
    color: white;
    margin-left: 10px;
}

.confirm-popup .popup-content .container .confirm-footer .confirm-button:hover {
    background-color: #FF8585;
}